package com.yfw.maple_leaf_store.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商品
 */
@Data
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    //订单号+主键
    private Long id;

    //数量
    private String number;

    //订单状态 1待付款，2待派送，3已派送，4已完成，5已取消
    private Integer status;

    //下单用户id
    private Long uid;

    //地址id
    private Long addressBookId;

    //下单时间
    private LocalDateTime orderTime;


    //结账时间
    private LocalDateTime checkoutTime;

    //实收金额
    private BigDecimal amount;

    //备注
    private String remark;

    //用户名
    private String uname;

    //手机号
    private String phone;

    //地址
    private String address;

    //收货人
    private String consignee;

    //对应购物车id
    private Long shopId;

}
